package com.onpositive.wiki3.db.catmodel.matches.classify;

import com.onpositive.nlp.sequence.ClassifiedSequence;
import com.onpositive.wiki3.db.catmodel.Category;
import com.onpositive.wiki3.db.catmodel.ICategoryMatcher;

public abstract class AbstractRecordingMatcher implements ICategoryMatcher {

	protected final RelationStore toRecord;
	
	

	public AbstractRecordingMatcher(RelationStore store) {
		super();
		this.toRecord = store;
	}

	protected void mark(String relation, Category toMark) {
		toRecord.register(relation, toMark);
	}

	protected void record(String relation, Category parent, Category child) {
		
		toRecord.recordRelation(relation, parent, child);
	}
	

	protected ClassifiedSequence getCore(Category st) {
		return st.getSequnce();
	}
}
